package com.wjl.tableanalyzier.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface BaseMapper {

    @Select("show tables")
    List<Map<String, String>> showTables();

    @Select("show columns from ${tableName}")
    List<Map<String, String>> showColumnsFromTable(@Param("tableName") String tableName);

    @Select("show indexes  from ${tableName}")
    List<Map<String, String>> showIndexsFromTable(@Param("tableName") String tableName);
}
